//
//  TestCGRect.h
//  TestMac
//
//  Created by 小星星吃KFC on 2021/6/16.
//


#import <Foundation/Foundation.h>
#import <CoreGraphics/CGGeometry.h>
static void TestCGRect(void){
   /**
    //UIEdgeInsetsInsetRect 表示在原来的rect基础上根据边缘距离内切一个rect出来
    CGRect rect= CGRectMake(20, 50, 100, 80);
    UIEdgeInsets ed=UIEdgeInsetsMake(-3, -4, -5, -6);
    CGRect  r=  UIEdgeInsetsInsetRect(rect, ed);
    NSLog(@"%@",p(r));
    //输出结果:2014-11-22 18:54:31.979 TestCGRectInset[8922:60b] {{16, 47}, {110, 88}}*/
    /**
     x = x+left;
     y = y+top;
     w = w -left -right;
     h = h - top -bottom;
     
     */
    
    
}


